/*
 * IncFile1.h
 *
 * Created: 6/7/2013 10:40:04 AM
 *  Author: Crossfire
 */ 


#ifndef INCFILE1_H_
#define INCFILE1_H_


#include <avr/io.h>
#include <util/delay.h>

#define TJUNCTION 0x20

int state;
uint8_t TJunction[7][3], orByteA, orByteB, orByteC;
unsigned char recv_data;
int mode = 0;
uint8_t Default[7][3] =
{
{1,1,1},
{3,1,1},
{2,1,1},
{1,3,1},
{1,2,1},
{1,1,3},
{1,1,2}
};

int main(void);
void parse_data_tsplitsing();
void TWI_init_slave(void);
void TWI_read_slave(void);
void TWI_match_read_slave(void);
void set_stoplichten(int mode);
int get_sensors();
void set_state();

#endif /* INCFILE1_H_ */